package com.elive.service;

import com.elive.common.ServerResponse;
import com.elive.pojo.User;
import com.elive.vo.UserInfoVo;

/**
 * Created by wuyin on 2018/3/6.
 */
public interface IUserService {

    ServerResponse<User> login(String username, String password);

    ServerResponse<User> customerLogin(Integer userId);

    ServerResponse<String> register(User user);

    ServerResponse<User> registerCustomer(User user);

    ServerResponse<String> updateUser(User user, String labels);

    ServerResponse<String> updateCustomerUser(User user);

    ServerResponse<UserInfoVo> getUserInfo(Integer userId);

    ServerResponse<String> resetPassword(String oldPassword, String newPassword, User user);

    ServerResponse<User> isRegister(String username);
}